<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in images" :key="item.id">
        <img :src="'http://liufusong.top:8080' + item.imgSrc" alt="" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  props: {
    images: Array
  },
  methods: {},
  components: {}
}
</script>

<style scoped lang='less'>
.my-swipe {
  width: 100%;
  height: 220px;
  // text-align: center;
  img {
    width: 100%;
    height: 100%;
  }
}
</style>
